<ion-header>
  <ion-navbar>
    <ion-title>餐饮收银</ion-title>
  </ion-navbar>
</ion-header>
<ion-content>
  <div *ngIf=" goodData.length <=0" class="empty">
    <page-empty></page-empty>
  </div>
  <div *ngIf=" goodData.length >0">
    <ion-segment [(ngModel)]="theFloor" *ngIf="floorNo.length>0" >
      <ion-segment-button *ngFor="let Num of floorNo" [value]="Num.no" (ionSelect)="segmentChanged(Num.no)">{{Num.name}}</ion-segment-button>
    </ion-segment>
  <div *ngFor="let a of goodData">
    <ion-list *ngIf="a.floor==theFloor">
      <ion-col class="ion-col-table">
        <div class="ion-card-table" *ngFor="let k of a.orderTable;let i=index;" (click)="cashDetail(k,a.floor,i)">
          <div class="ion-label">{{k.tablename}}</div>
          <!--<p>{{ k.tableSite.name}}</p>-->
          <div>￥&nbsp;&nbsp;&nbsp;{{k.sumPrice}}元</div>
        </div>
      </ion-col>
    </ion-list>
  </div>
  </div>
</ion-content>
